//import Vue from 'vue'
import responseHandler from '../response-handler'

function makeData(images) {
  console.log(originalData)

  return images.data.map((img) => {
    return {
      download: {
        hzlogo: img.hzlogo,
        pic_appdownload: img.pic_appdownload
      },
      eve_smart_message: {
        smart_message: img.smart_message
      },
      goodsDetail: {
        pic_21: img.pic_21,
        pic_22: img.pic_22
      },
      sales_promotion: {
        activity_dome: img.activity_dome
      },
      public_image: {
        newLogo: img.newLogo,
        noRob: img.noRob,
        pic_2: img.pic_2,
        pic_20: img.pic_20,
        robCoupon: img.robCoupon,
        robMoney: img.robMoney,
        robV: img.robV
      }
    }
  })
}



export default function (params, success, fail) {
  console.log(params)
  setTimeout(() => {
    success && success({
      data: {
        hzlogo: this.addPath('/upload/image/app/download/hzlogo.png'),
        pic_appdownload: this.addPath('/upload/image/app/download/pic_appdownload.png'),
        smart_message: this.addPath('/upload/image/app/eve_smart_message/smart-message.png'),
        pic_21: this.addPath('/upload/image/app/goodsDetail/pic_21.png'),
        pic_22: this.addPath('/upload/image/app/goodsDetail/pic_22.png'),
        newLogo: this.addPath('/upload/image/app/public_image/newLogo.png'),
        noRob: this.addPath('/upload/image/app/public_image/noRob.png'),
        pic_2: this.addPath('/upload/image/app/public_image/pic_2.png'),
        pic_20: this.addPath('/upload/image/app/public_image/pic_20.png'),
        robCoupon: this.addPath('/upload/image/app/public_image/robCoupon.png'),
        robMoney: this.addPath('/upload/image/app/public_image/robMoney.png'),
        robV: this.addPath('/upload/image/app/public_image/robV.png'),
		//促销默认图片
        freeShipping: this.addPath('/upload/image/app/sales-promotion/FreeShipping.png'), //包邮
        fullCut: this.addPath('/upload/image/app/sales-promotion/FullCut.png'),  //满减 
        fullGift: this.addPath('/upload/image/app/sales-promotion/FullGift.png'), // 满赠
        package: this.addPath('/upload/image/app/sales-promotion/Package.png'),	// 套餐
        discount: this.addPath('/upload/image/app/sales-promotion/Discount.png'), // 折扣
      }
    })
  }, 300)
}